import {App, PluginSettingTab, Setting} from "obsidian";
import TagsAggregatorPlugin from "./main";
import {CommonBatchJobUI, CommonSingleJobsUI} from "./common";

export class SettingTab extends PluginSettingTab {
    plugin: TagsAggregatorPlugin;
    commonSingleJobsUI: CommonSingleJobsUI;
    commonBatchJobUI: CommonBatchJobUI;

    constructor(app: App, plugin: TagsAggregatorPlugin) {
        super(app, plugin);
        this.plugin = plugin;
        this.commonSingleJobsUI = new CommonSingleJobsUI(this.containerEl, this.plugin);
        this.commonBatchJobUI = new CommonBatchJobUI(this.containerEl, this.plugin);
    }

    display(): void {
        this.containerEl.empty();
        this.commonSingleJobsUI.display();
        this.commonBatchJobUI.display();
    }
}